package work.linruchang.mybatisplussamplestest.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 文章标签表(article_tag)
 *
 * @author LinRuChang
 * @version 1.0.0 2020-09-23
 */
@Data
@ToString(callSuper=true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("article_tag")
@KeySequence("ArticleTag")
public class ArticleTag extends BaseDB implements Serializable {


    /** 主键 - 记录插入自动填充主键处理{@path application.yml} */
    @TableId(type= IdType.INPUT)
    private String id;

    /**
     * 版本号
     */
    private static final long serialVersionUID = -8898734581249698571L;


    /**标签名 - 限制15个字*/
    private String tagName;

    /**标签所属的用户 - sys_user表的ID*/
    private String userId;

    /**标签是否违规：0未违规 1违规 - 违规不可显示*/
    private Integer isViolation;

}